package com.gigrt.midend.marketing.impl.domain.campaign.service;

import com.gigrt.midend.marketing.impl.domain.campaign.event.ChannelDomainEvent;
import com.gigrt.midend.marketing.impl.infrastructure.eventbus.IDomainEventBus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <P>领域服务</P>
 *
 * @author zhong.fuhua@iwhalecloud.com
 * @date 2020/3/27$ 11:30$
 * @since $
 */
@Service
public class ChannelDomService {

  @Autowired
  private IDomainEventBus domainEventBus;

  public void send(){
    domainEventBus.publish(new ChannelDomainEvent(5));
  }
}
